home *** CD-ROM | disk | FTP | other *** search
- for(i in _root.warriors)
- {
- if(_root.warriors[i]._name != "champ")
- {
- if(side == "left" && _root.warriors[i].side == "right" || side == "right" && _root.warriors[i].side == "left")
- {
- if(hitTest(_root.warriors[i]))
- {
- _root.warriors[i].health -= random(6) + 1;
- break;
- }
- }
- }
- }
- if(side == "right" && hitTest(_root.warriors.champ))
- {
- _root.warriors.champ.health -= random(6) + 1;
- }
-